﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Media;

namespace DiamondDesktop.Presenters
{
    class WavPlayer : DiamondDesktop.Presenters.IMusicPlayer
    {

        private SoundPlayer player = new SoundPlayer();
        private string path = "";

        public void setFile(string path)
        {
            if (this.path != path)
            {
                player.SoundLocation = path;
                player.Load();
            }
        }

        public void play()
        {
            player.Play();
        }
        public void stop()
        {
            player.Stop();
        }

    }
}
